package com.dps.omc.shell;

import com.dps.omc.monitor.AgentState;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by lip on 2016-07-12.
 */
public class ShellSessions {

    private static Map<String,ShellClient> map = new HashMap<String, ShellClient>();

    public static void putShellClient(String sessionId,ShellClient client)
    {
        map.put(sessionId,client);
    }

    public static ShellClient getClient(String sessionId)
    {
        return map.get(sessionId);
    }

    public static void  remove(String sessionId)
    {
        map.remove(sessionId);
    }
}
